
export const menus = [
    {
        path:"/index/home",
        name:"home",
        component:()=>import("@/views/home/index.vue"),
        text:"首页",
        premession:1,
        icon:"el-icon-s-home"
    },
    {
        path:"/index/map",
        name:"map",
        component:()=>import("@/views/map/index.vue"),
        text:"公司地址",
        premession:1,
        icon:"el-icon-location"
    },
    {
        path:"/index/ment",
        name:"ment",
        text:"管理",
        component:()=>import("@/views/ment/index.vue"),
        icon:"el-icon-s-data",
        redirect:"/index/ment/management",
        premession:3,
        children:[
            {
                path:"/index/ment/management",
                name:"management",
                component:()=>import("@/views/ment/management.vue"),
                text:"人员管理",
                icon:"el-icon-edit-outline",
            },
            {
                path:"/index/ment/approval",
                name:"approval",
                component:()=>import("@/views/ment/approval.vue"),
                text:"审批",
                icon:"el-icon-s-custom",
            },
        ]
    },
    {
        path:"/index/business",
        name:"business",
        text:"员工办理",
        component:()=>import("@/views/business/index.vue"),
        icon:"el-icon-share",
        redirect:"/index/business/ask",
        premession:1,
        children:[
            {
                path:"/index/business/ask",
                name:"ask",
                component:()=>import("@/views/business/ask.vue"),
                text:"请假申请",
                icon:"el-icon-time",
            },
            {
                path:"/index/mine/attendance",
                name:"attendance",
                component:()=>import("@/views/mine/attendance.vue"),
                text:"打卡",
                icon:"el-icon-s-custom",
            },
            {
                path:"/index/business/xiu",
                name:"xiu",
                component:()=>import("@/views/business/xiu.vue"),
                text:"修改申请",
                icon:"el-icon-time",
                hide:true,
            },
        ]
    },
    {
        path:"/index/advise",
        name:"advise",
        text:"公司留言",
        component:()=>import("@/views/advise/index.vue"),
        icon:"el-icon-upload",
        redriect:"/index/advise/add",
        premession:1,
        children:[
            {
                path:"/index/advise/add",
                name:"adviseadd",
                component:()=>import("@/views/advise/add.vue"),
                text:"发布",
                premession:1,
                icon:"el-icon-upload",
            },
            {
                path:"/index/advise/list",
                name:"adviselist",
                component:()=>import("@/views/advise/list.vue"),
                text:"大家的留言",
                premession:1,
                icon:"el-icon-upload",
            },
            {
                path:"/index/advise/reply/:id",
                name:"advisereply",
                component:()=>import("@/views/advise/reply.vue"),
                text:"回复留言",
                premession:1,
                hide:true,
            },
            {
                path:"/index/advise/edit/:id",
                name:"adviseedit",
                component:()=>import("@/views/advise/edit.vue"),
                text:"修改留言",
                premession:1,
                hide:true,
            },
        ]
    },
    {
        path:"/index/buy",
        name:"buy",
        text:"公司购物",
        component:()=>import("@/views/buybox/index.vue"),
        icon:"el-icon-goods",
        redirect:"/index/buy/list",
        premession:1,
        children:[
            {
                path:"/index/buy/list",
                name:"buylist",
                component:()=>import("@/views/buybox/list.vue"),
                icon:"el-icon-goods",
                text:"商品列表",
                premession:1,
            },
            {
                path:"/index/buy/mygood",
                name:"mygood",
                component:()=>import("@/views/buybox/mygood.vue"),
                icon:"el-icon-goods",
                text:"我的商品",
                premession:1,
            },
            {
                path:"/index/buy/detail/:goodId",
                name:"gooddetail",
                component:()=>import("@/views/buybox/detail.vue"),
                text:"商品详情",
                premession:1,
                hide:true,
            }
        ]
    },
    {
        path:"/index/mine",
        name:"mine",
        component:()=>import("@/views/mine/index.vue"),
        text:"我的",
        icon:"el-icon-user-solid",
        redirect:"/index/mine/my",
        premession:1,
        children:[
            {
                path:"/index/mine/leave",
                name:"leave",
                component:()=>import("@/views/mine/leave.vue"),
                text:"我的请假信息",
                icon:"el-icon-s-custom",
            },
        ]
    },
   
]

